Skip to content

[POC] gh-85454: Extract and inject distutils from setuptools whl#95254

Closed
tiran wants to merge 2 commits intopython:mainfrom
tiran:gh-85454-inject-setuptools
Closed

[POC] gh-85454: Extract and inject distutils from setuptools whl#95254
tiran wants to merge 2 commits intopython:mainfrom
tiran:gh-85454-inject-setuptools

Conversation

@tiran
Copy link
Member

@tiran tiran commented Jul 25, 2022

Extract the wheel from ensurepip's bundle and inject setuptools and
distutils into sys.path.

Extract the wheel from ensurepip's bundle and inject setuptools and
distutils into sys.path.
@tiran
Copy link
Member Author

tiran commented Jul 25, 2022

This looks kinda horrible but it works surprisingly well.

@encukou
Copy link
Member

encukou commented Aug 4, 2022

In the long term, pip will probably stop containing setuptools.
Maybe we should do this with sysconfig, at least for some platforms. It's something we could then also use in the tutorial: of course the tutorial should recommend third-party tools, from Cython to setuptools, but that should be links to their docs. IMO, it would be helpful to doc & test using sysconfig to get a bare-bones gcc/clang command line for a simple extension.

@pradyunsg
Copy link
Member

pradyunsg commented Sep 23, 2022

FWIW, this isn’t a long-term concern: (puts on pip maintainer hat) we want to do it, for 3.12.

#95299

@vstinner
Copy link
Member

Is this PR still relevant? It's now outdated. I closed #92584

@pradyunsg
Copy link
Member

This is no longer relevant.

@pradyunsg pradyunsg closed this Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments